package sp.service;

import java.util.LinkedHashMap;
import java.util.List;

import sp.pojo.BookCategory;

public interface BookCategoryService {
	
	public List<BookCategory> listAllCategorys() throws Exception;

	
	/**
	 * 负责首页的二级导航
	 * 第一个key: 父级目录
	 * 第二个key: 次级目录
	 * @return
	 */
	public LinkedHashMap<BookCategory, LinkedHashMap<BookCategory, List<BookCategory>>> listCategoryWithMap() throws Exception;
	
	
	
	public List<BookCategory> listBookCatgorys(Integer parentId) throws Exception;
}
